       <?php
	   $row = $result[0]; echo form_open_multipart('admin/link/update/'.$row['ban_id']); ?>	<!-- start title -->
		<div class="title corners_top" style="float:left;width:200px;"><h6 style="color:#900;" id="forms"><?php echo $title; ?></h6></div><!-- end title -->
        		<div class="proccess_bar">
                
         

    <ul class="menu_bar">
    <li><?php
	
	
	$data = array('name' => 'update', 'value' => ' ','class'=>'delete-1', 'id' => 'save');
	 echo form_submit($data);?> <!--<a href="#" ><span class="save-1"> </span>Save</a> -->
     Lưu
     </li>
	
     <li> <?php 
	 $data = array('name' => 'close', 'value' => ' ','class'=>'delete-1', 'id' => 'cancel');
	 
	 echo form_submit($data); ?>
     Hủy<!--<a href="#" ><span class="cancel-1"></span>Cancel</a>--></li>
    
    </ul>
    
    
 

 </div>
		<div class="content">
        
       
        <?php // echo '<p class="title">'.$this->lang->line('title_user_info').'</p>';
 if(isset($missing) && is_array($missing) )
   {
  
   echo ' <div><a href="javascript:();" title="Succes box" class="box error corners"><span class="close">&nbsp;</span>';
   foreach($missing as $item)
   {
   		echo $item."<br />";
   }
   echo "</a></div>";
   }
   
   	// file upload
	$code = "img";
	$label =$this->lang->line('image');
	

	
	//$data = array('name' =>$code, 'size' =>'20', 'value' => set_value($code));

//	echo form_upload($data);
	?>
    
	
     <h6><?php echo 	$label =$this->lang->line('image'); ?></h6>
		<input type="text" id="fileName" class="file_input_textbox corners_left" readonly="readonly" />
 			<div class="file_input_div">
				<input type="button" value="" class="file_input_button" />
				<input type="file" name="img" id="img" class="file_input_hidden" onchange="javascript: document.getElementById('fileName').value = this.value" />
                
                
			</div>
  <?php
  
  if($row['ban_images'] != "")
   echo  '<div > '.$row['ban_images'].' </div>' ?>

<h6><?php echo $this->lang->line('news_title'); ?></h6>
<?php
	//title  vi

echo '<div class="inner">';
	$code = "ban_name";
	$label ="Tên";
	$data = array('name' =>$code,'class'=>'large_input corners' ,'id' => $code, 'value' =>$row[$code]);
	echo '<p>';
	//echo form_label($label);
		if (! empty($missing) && array_key_exists($code, $missing))

		 echo form_input($data, set_value($code)),'<span class="info_error">error</span>';

	else
	  echo form_input($data, set_value($code));
	
	echo '</p>';
	
	echo '</div>';


echo '<h6>website liên kế </h6>';
	
echo '<div class="inner">';
	$code = "ban_website";
	$label ="Vietnamese";
	$data = array('name' =>$code,'class'=>'large_input corners' ,'id' => $code, 'value' => $row[$code]);
	echo '<p>';
	
		if (! empty($missing) && array_key_exists($code, $missing))

		 echo 'http://',form_input($data, set_value($code)),'<span class="info_error">error</span>';

	else
	  echo 'http://',form_input($data, set_value($code));
	
	echo '</p>';
	
	echo '</div>';
//print_r($row);
//echo $row['ban_status'];
?>
<h6 > Trạng thái </h6>
<input  type="radio" name="status" id="status" value="1" <?php echo ($row['ban_status'] == 1)? 'checked="checked" ': '' ?> />Hiện
<input  type="radio" name="status" id="status" value="0" <?php echo ($row['ban_status'] == 0)? 'checked="checked" ': '' ?> /> ẩn
<?php

	

	echo form_close(); //FORM END

	
	
	?> 
        
        
     
